package com.george.es.model.query;

import com.baomidou.mybatisplus.core.enums.SqlLike;
import com.baomidou.mybatisplus.core.toolkit.sql.SqlUtils;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author GeorgeChan 2019/6/13 14:15
 * @version 1.0
 * @since jdk1.8
 */
@Data
public class ArticleQueryDto {
    private String name;
    private String content;

    private String getNameLike() {
        return SqlUtils.concatLike(this.name, SqlLike.DEFAULT);
    }

    public String getContentLike() {
        return SqlUtils.concatLike(this.content, SqlLike.DEFAULT);
    }
}
